<body>
	<div class="subnav">
		<div class="content-menu ib-a blue line-x">
			<a href='javascript:;' class="on"><em>公告管理</em></a><span>|</span><a
				href='/Notice/add/'><em>添加公告</em></a>
		</div>
	</div>
	<div class="pad_10">
		<div class="table-list">
			<form name="myform" action="/Notice/listorder/" method="post">
				<table width="100%" cellspacing="0">
					<thead>
						<tr>
							<th width="10%">序号</th>
							<th width="15%" align="left">标题</th>
							<th width="10%" align="left">起始日期</th>
							<th width="10%" align="left">截止日期</th>
							<th width="10%" align="left">录入者</th>
							<th width="10%" align="left">浏览次数</th>
							<th width="10%" align="left">状态</th>
							<th width="15%">发表时间</th>
							<th width="15%">管理操作</th>
						</tr>
					</thead>
					<tbody>
						<?php
						if(!empty($list)){
						  foreach ($list as $val) { 
						?>
						<tr>
							<td width="10%" align="center">
								<?php echo $val['Notice']['id'] ?>
							</td>
							<td>
								<?php echo $val['Notice']['title'] ?>
							</td>
							<td>
								<?php echo $val['Notice']['starttime'] ?>
							</td>
							<td>
								<?php echo $val['Notice']['endtime'] ?>
							</td>
							<td>
								<?php echo $val['Notice']['username'] ?>
							</td>
							<td>
								<?php echo $val['Notice']['hits'] ?>
							</td>
							<td>
								<?php if($val['Notice']['state']==1){ echo '通过';}else{ echo '待审核';}  ?>
							</td>
							<td>
								<?php echo $val['Notice']['ctime'] ?>
							</td>
							<td width="15%" align="center"><a
								href="/Notice/edit/<?php echo $val['Notice']['id'] ?>/">修改</a> |
								<a href="javascript:;"
								onclick="delete_notice(<?php echo $val['Notice']['id'] ?>)">删除</a>
							</td>
						</tr>
						<?php } } ?>
					</tbody>
				</table>
				<div id="pages">
					<?php echo $this->Page->show($perpage, $total, $curpage, 10, '/Notice/page/', 2); ?>
				</div>
			</form>
		</div>
	</div>
</body>
<script type="text/javascript">
	$(document).ready(function() {
		window.top.$('#display_center_id').css('display', 'none');
	});
</script>